//公告数据库模型
const mongoose = require("mongoose");

const { Schema, model } = mongoose;

const NoticeSchema = new  Schema ({ 
  //创建人-学号
  username: { type: String, require: true }, 
  //创建人-姓名
  nickname: { type: String, require: true },
  //公告内容
  notice: { type: String, require: true },
  //创建时间
  createTime: { type: Number, require: true },
});

const Notice = model("Notice", NoticeSchema);

module.exports = Notice;